<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
    <!-- <script src="https://cdn.jsdelivr.net/npm/vue/dist/vue.js"></script> -->
    <script src="./node_modules/vue/dist/vue.js"></script>
    <style>
      .red {
        color: red;
      }

      .blue {
        color: blue;
      }

      .fontSize {
        font-size: 50px;
      }
    </style>
  </head>

  <body>
    <div id="app">
      <div :class="classes" :style="styleInfo">text</div>
    </div>
    <script>
      const app = new Vue({
        el: "#app",
        data: {
          msg: "hello world",
          // styleInfo: {
          //   color: "blue",
          //   fontSize: "50px",
          // },

          styleInfo: [
            {
              color: "blue",
            },

            {
              fontSize: "50px",
            },
          ],
          // [] {}
          // classes: [
          //   "red",
          //   {
          //     fontSize: 1 === 2,
          //   },
          // ],
          // classes: {
          //   red: true,
          //   fontSize: 1 === 1, // 你可以基于你自己的逻辑来处理
          // },
        },
      });

      console.log(app);
    </script>
  </body>
</html>
